package com.mc.provider.service.hi;

import com.mc.mic.core.provider.IMicProviderServiceExecutor;
import com.mc.provider.param.HiRequestParam;
import com.mc.provider.param.HiResponseParam;
import org.springframework.stereotype.Service;

/**
 * XXXX
 *
 * @author LiuChunfu
 * @date 2018/1/3
 */
@Service
public class HiMicServiceExecutor implements IMicProviderServiceExecutor<HiRequestParam, HiResponseParam> {

    @Override
    public HiResponseParam doExecute(HiRequestParam bean) {
        System.out.println(bean.getContent());
        //业务逻辑。。。。
        HiResponseParam resultParam = new HiResponseParam();
        resultParam.setName(bean.getContent() + "Hi,LCF");
        return resultParam;
    }
}
